﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using XamlingCore.Infrastructure.Dialog;

namespace XamlingCore.WP.Infrastructure.Exceptions
{
    public class UserFriendlyExceptionEventArgs : EventArgs
    {
        private UserFriendlyException userFriendlyException;

        private Action<bool> resultCallback;

        private DialogMessageButtons buttons;

        public UserFriendlyExceptionEventArgs(UserFriendlyException userFriendlyException, DialogMessageButtons buttons, Action<bool> resultCallback)
        {
            UserFriendlyException = userFriendlyException;
            ResultCallback = resultCallback;
            Buttons = buttons;
        }

        public UserFriendlyException UserFriendlyException
        {
            get { return userFriendlyException; }
            set { userFriendlyException = value; }
        }

        public Action<bool> ResultCallback
        {
            get { return resultCallback; }
            set { resultCallback = value; }
        }

        public DialogMessageButtons Buttons
        {
            get { return buttons; }
            set { buttons = value; }
        }
    }
}
